﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Collections.ObjectModel;
using MvcApplication6.DAL.Helper;
using MvcApplication6.Models;

namespace MvcApplication6.DAL
{
    public class ImageDAL
    {
        //-----------------------ImageInsert-----------------
        public int ImageInsert(string name)
        {
            Collection<SqlParameter> parameterList = new Collection<SqlParameter>();

            parameterList.Add(new SqlParameter("@name", name));

            int i = SQLHelper.ExecuteNonQuery("spImageInsert", parameterList);

            return i;
        }
    }
}